﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace BusinessLogic.Data
{
    public class Webinar
    {
        public Webinar() { }

        public Webinar(System.Data.DataRow row) 
        {
            Load(row);
        }


        public int ID { get; set; }
        
        public string UID { get; set; }
        
        public string Name { get; set; }
        
        public string Description { get; set; }
        
        public DateTime Scheduled { get; set; }
        
        public string URI { get; set; }

        public List<Question> Questions { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="row"></param>
        internal void Load(System.Data.DataRow row)
        {
            ID = row.Field<int>("ID");
            UID = row.Field<string>("UID");
            Name = row.Field<string>("Name");
            Scheduled = row.Field<DateTime>("Scheduled");
            URI = row.Field<string>("URI");
            Description = row.Field<string>("Description");
        }
    }
}
